home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _47C01DF852C141E581E6E08391D4952D < prev    next >
Encoding:
Text File  |  2004-07-20  |  8.6 KB  |  354 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $NORMALS
  6. // $NORMALSOPTIONSFILE
  7. // $SPECPOW
  8.  
  9. Shader()
  10. {
  11.     ShaderQuality(5)
  12.     Pass()
  13.     {
  14.         // lighting()
  15.         VertexShader("CarL_CmCd_Bump_ps20.vsh")
  16.         Pixelshader("CarL_CmCd_Bump_ps20.psh")
  17.  
  18.         !include("__Tex1.mtt")
  19.         !include("__Dirt.mtt")
  20.         !include("__CloudsVS.mtt")
  21.         !include("__TerrainColormapVS.mtt")
  22. //        !include("__TerrainColormapSmallVS.mtt")
  23. //        !include("__DynamicCubeMap.mtt")
  24.         !include("__CubeMap.mtt")
  25.         !include("__DirtNormalsMap.mtt")
  26.         !include("__LightMask.mtt")        
  27.  
  28.         colorgen("tfactor", "user", 0,0,0, "user", 0,0,0) // RGB - lights state, A - dirt level
  29.     }
  30.     Cull("cw")
  31. }
  32.  
  33.  
  34. shader()
  35. {
  36.     ShaderQuality(3)
  37.     pass()
  38.     {
  39.         //Lighting()
  40.         Pixelshader("CarL_CmCd_ps14.psh")
  41.         Vertexshader("CarL_CmCd_ps14.vsh")
  42.  
  43.         !include("__tex1.mtt")
  44.         !include("__Dirt.mtt")
  45.         !include("__TerrainColormapVS.mtt")
  46. //        !include("__TerrainColormapSmallVS.mtt")
  47.         !include("__CloudsVS.mtt")
  48. //        !include("__DynamicCubeMap.mtt")
  49.         !include("__CubeMap.mtt")
  50.         !include("__LightMask.mtt")        
  51.  
  52.         colorgen("tfactor", "user", 0,0,0, "user", 0,0,0) // RGB - lights state, A - dirt level
  53.     }
  54.     Cull("cw")
  55. }
  56.  
  57.  
  58. shader()
  59. {
  60.     ShaderQuality(2)
  61.     pass()
  62.     {
  63.         Pixelshader("CarBR_Cm_ps11.psh")
  64.         Vertexshader("CarBR_Cm_ps11.vsh")
  65.  
  66.         !include("__tex1.mtt")
  67.         !include("__Dirt.mtt")
  68.         !include("__TerrainColormapSmallVS.mtt")
  69. //        !include("__DynamicCubeMap.mtt")        
  70.         !include("__CubeMap.mtt")        
  71.  
  72.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  73.     }
  74.     pass()
  75.     {
  76.         Pixelshader("CarL_pass2_ps11.psh")
  77.         Vertexshader("CarL_pass2_ps11.vsh")
  78.  
  79.         !include("__tex1.mtt")
  80.         !include("__Dirt.mtt")
  81.         !include("__LightMask.mtt")
  82.  
  83.         colorgen("tfactor", "user", 0,0,0, "user", 0,0,0) // RGB - lights, A - dirt level
  84.         BlendFunc("src_alpha", "inv_src_alpha")
  85.     }
  86.     Cull("cw")
  87. }
  88.  
  89.  
  90. shader()
  91. {
  92.     ShaderQuality(1)
  93.     pass()
  94.     {
  95.         Pixelshader("CarBR_ps11.psh")
  96.         Vertexshader("CarBR_ps11.vsh")
  97.  
  98.         !include("__tex1.mtt")
  99.         !include("__Dirt.mtt")
  100.         !include("__TerrainColormapSmallVS.mtt")
  101.  
  102.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  103.     }
  104.     pass()
  105.     {
  106.         Pixelshader("CarL_pass2_ps11.psh")
  107.         Vertexshader("CarL_pass2_ps11.vsh")
  108.  
  109.         !include("__tex1.mtt")
  110.         !include("__Dirt.mtt")
  111.         !include("__LightMask.mtt")
  112.  
  113.         colorgen("tfactor", "user", 0,0,0, "user", 0,0,0) // RGB - lights, A - dirt level
  114.         BlendFunc("src_alpha", "inv_src_alpha")
  115.     }
  116.     Cull("cw")
  117. }
  118.  
  119. //=========================== GF2 ======================================
  120. shader()
  121. {
  122.     ShaderQuality(2)
  123.     pass()
  124.     {
  125.         Lighting()
  126.         tmu()
  127.         {
  128.             TexGen("planar")
  129.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  130.             texture()
  131.             {
  132.                 Image(%colortexturesmall)
  133.                 addressfunc("clamp", "clamp", "clamp")
  134.             }
  135.             ColorOp("mul_add", "texture_a", "current", "diffuse_a")
  136.             AlphaOp("arg1", "texture_a", "current", "current")
  137.         }
  138.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  139.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  140.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  141.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  142.         SpecularPow(0.0)
  143.                
  144.     }
  145.    
  146.     pass()
  147.     {
  148.         tmu()
  149.         {
  150.             Texture()
  151.             {
  152.                 Mapchannel(0)
  153.                 Image(LIGHTSMASKS)
  154.                 !include(LIGHTSMASKSOPTIONSFILE)
  155.             }
  156.             ColorOp("add", "tfactor_a", "texture", "current")
  157.         }
  158.  
  159.         tmu()
  160.         {
  161.             ColorOp("dot3", "tfactor", "current", "current")
  162.         }            
  163.         
  164.         tfactor(1, 1, 1, 0.5)
  165.         colorgen("tfactor", "user", 0,0,0, "none", 0,0,0) // RGB - lights        
  166.         BlendFunc("one", "one" )
  167.     }            
  168.     lightpass()
  169.     !include("spot_spotmap.mtt")
  170.     pass()
  171.     {
  172.         Lighting()
  173.         tmu()
  174.         {
  175.             Texture()
  176.             {
  177.                 Mapchannel(0)
  178.                 Image(DIRT_GF2)
  179.                 !include(DIRTOPTIONSFILE)
  180.             }
  181.             ColorOp("arg1", "tfactor", "current", "current")
  182.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  183.         }
  184.         tmu()
  185.         {
  186.             Texture()
  187.             {
  188.                 Mapchannel(0)
  189.                 Image(TEXTURE1)
  190.                 !include(TEX1OPTIONSFILE)
  191.             }
  192.             ColorOp("blend_current_alpha", "current", "texture", "current")
  193.         }
  194.  
  195.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  196.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  197.    
  198.         AmbientColor(0.0, 0.0, 0.0, 1.0)
  199.         DiffuseColor(0.0, 0.0, 0.0, 1.0)
  200.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  201.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  202.         SpecularPow(SPECPOW)                
  203.  
  204.         BlendFunc("zero", "src_color")
  205.     }
  206.     
  207.     Cull("cw")
  208. }
  209.  
  210. // -------------------------   dla kart bez dot3 
  211. shader()
  212. {
  213.     ShaderQuality(2)
  214.  
  215.     pass()
  216.     {
  217.         Lighting()
  218.         tmu()
  219.         {
  220.             TexGen("planar")
  221.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  222.             texture()
  223.             {
  224.                 Image(%colortexturesmall)
  225.                 addressfunc("clamp", "clamp", "clamp")
  226.             }
  227.             ColorOp("mul_add", "texture_a", "current", "diffuse_a")
  228.             AlphaOp("arg1", "texture_a", "current", "current")
  229.         }
  230.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  231.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  232.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  233.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  234.         SpecularPow(0.0)
  235.                
  236.     }
  237.     lightpass()
  238.     !include("spot_spotmap.mtt")
  239.  
  240.     pass()
  241.     {
  242.         Lighting()
  243.         tmu()
  244.         {
  245.             Texture()
  246.             {
  247.                 Mapchannel(0)
  248.                 Image(DIRT_GF2)
  249.                 !include(DIRTOPTIONSFILE)
  250.             }
  251.             ColorOp("arg1", "tfactor", "current", "current")
  252.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  253.         }
  254.         tmu()
  255.         {
  256.             Texture()
  257.             {
  258.                 Mapchannel(0)
  259.                 Image(TEXTURE1)
  260.                 !include(TEX1OPTIONSFILE)
  261.             }
  262.             ColorOp("blend_current_alpha", "current", "texture", "current")
  263.         }
  264.  
  265.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  266.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  267.    
  268.         AmbientColor(0.0, 0.0, 0.0, 1.0)
  269.         DiffuseColor(0.0, 0.0, 0.0, 1.0)
  270.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  271.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  272.         SpecularPow(SPECPOW)                
  273.  
  274.         BlendFunc("zero", "src_color")
  275.     }
  276.  
  277.     Cull("cw")
  278. }
  279.  
  280.  
  281. shader()
  282. {
  283.     ShaderQuality(1)
  284.     pass()
  285.     {
  286.         !include("__tex1.mtt")
  287.     }
  288.     pass()
  289.     {
  290.         tmu()
  291.         {
  292.             Texture()
  293.             {
  294.                 Mapchannel(0)
  295.                 Image(LIGHTSMASKS)
  296.                 !include(LIGHTSMASKSOPTIONSFILE)
  297.             }
  298.             ColorOp("add", "tfactor_a", "texture", "current")
  299.         }
  300.  
  301.         tmu()
  302.         {
  303.             ColorOp("dot3", "tfactor", "current", "current")
  304.         }            
  305.         
  306.         tfactor(1, 1, 1, 0.5)
  307.         colorgen("tfactor", "user", 0,0,0, "none", 0,0,0) // RGB - lights        
  308.         BlendFunc("zero", "src_color" )
  309.     }
  310.     pass()
  311.     {
  312.         Lighting()
  313.         !include("__tex1.mtt")
  314.         !include("__LightningColorsGF2.mtt")          
  315.         BlendFunc("one", "one" )
  316.     }
  317.         
  318.     lightpass()
  319.     !include("spot_spotmap.mtt")    
  320.  
  321.     Cull("cw")
  322. }
  323. //=======================================================
  324. /*
  325. shader()
  326. {
  327.     ShaderQuality(0)
  328.     pass()
  329.     {
  330.         Lighting()
  331.         Pixelshader("Common_specular.psh")
  332.         Vertexshader("Common_specular.vsh")
  333.         !include("__tex1.mtt")
  334.     }
  335.     Cull("cw")
  336. }
  337. */
  338. shader()
  339. {
  340.     ShaderQuality(0)
  341.     pass()
  342.     {
  343.         Lighting()
  344.         !include("__tex1.mtt")
  345.         !include("__LightningColorsGF2.mtt")          
  346.     }
  347. //    lightpass()
  348. //    !include("spot_spotmap.mtt")    
  349.  
  350.     Cull("cw")
  351. }
  352.  
  353.  
  354.